import store from "../store";
import { intersection } from 'lodash';


export default (auth: string[]) => {

    const role = store.userStore.userInfo.role;
    if (!auth) return true;
    const data = intersection(auth, role);
    return data.length > 0;
}